package com.baimawangzi.recovery.service.impl;

import com.baimawangzi.recovery.bean.Cate;
import com.baimawangzi.recovery.dao.CateDao;
import com.baimawangzi.recovery.dao.impl.CateDaoImpl;
import com.baimawangzi.recovery.service.CateService;

import java.util.List;

public class CateServiceImpl implements CateService {
    private CateDao cateDao=new CateDaoImpl();
    @Override
    public int getId(String name) {
        return cateDao.getId(name);
    }

    @Override
    public List<Cate> getAll() {
        return cateDao.getAll();
    }
}
